%
% Created by Vasyl Mykhalchuk 13/01/12
%
% Calculates the area of triangle composed of vertices v1,v2,v3
function [area] = triangleArea(v1,v2,v3)
a = v2 - v1;
b = v3 - v1;
cross_prod = cross(a, b) / 2;
areaVec = reshape(cross_prod,3,1);
area = norm(areaVec);
end

